<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
    Prabhat, initial page, CSS and W3C validation
    Xxx, added Javascript
    Xxx, made page dynamic JSP
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
        <title>Net-Chat:Network Apps coursework discussion</title>
        <link rel="stylesheet" type="text/css" href="../style/common.css"></link>
        <script type="text/javascript">
            function validate() {
                alert("Hah, you should see what's next in Stage 2");
                return false;
            }
            window.onload = scrollDwn;

            function scrollDwn() {
                var msgs = document.getElementById("messages");
                msgs.scrollTop = msgs.scrollHeight;
            }
        </script>
    </head>
    <body>
        <div id="container">
            <div id="top">
                <h1>Net-Chat</h1>
            </div>
            <div id="leftnav">
                <p>
                    This is an example of an active forum with users and messages being sent/received instantaneously.
                </p>
            </div>
            <div id="content">
                <h2>Forum: Network Apps coursework discussion</h2>

                <p>
                    <a href="leaveforum.htm">leave forum</a> (automatic after 30 mins of inactivity)
                </p>
                <p>
                    <textarea name="message" id="message" class="chatmsg" rows="" cols=""></textarea>
                    <input type="submit" name="send" id="send" value="send" onclick="validate()" class="sendmsg" />
                </p>

                <div id="messages" class="chatwindow">
                    1. Sent Feb Sun 20/02/11 16:38:14 by Prabhat<br/>
                    hello<br/>
                    2. Sent Feb Sun 20/02/11 16:38:38 by Amir<br/>
                    hi<br/>
                    3. Sent Feb Sun 20/02/11 16:39:18 by Zaid<br/>
                    hey<br/>
                    4. Sent Feb Sun 20/02/11 16:39:45 by Usman<br/>
                    yo man!<br/>
                </div>
                <div class="chatusers">
                    <strong>Active users (4):</strong><br/>
                    <div id="users">
                        Prabhat<br/>
                        Amir<br/>
                        Zaid<br/>
                        Usman<br/>
                    </div>
                </div>
            </div>
            <div id="footer">
                <div class="alignleft">Author: Totoo</div>
                <div class="alignright">Network Applications</div>
                <div class="clr"></div>
            </div>
        </div>
        <p class="center">
            <a href="http://validator.w3.org/check?uri=referer">
                <img class="w3img" src="http://www.w3.org/Icons/valid-xhtml10-blue" alt="Valid XHTML 1.0 Strict" />
            </a>
            <a href="http://jigsaw.w3.org/css-validator/check/referer">
                <img class="w3img" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!" />
            </a>
        </p>
    </body>
</html>